package com.sunxu.exercise9;

/**
 * ${DESCRIPTION}
 *
 * @author Sun
 * @create 2017-08-06-19:21
 */
public class ThreadA extends Thread {
    private ThreadB b;

    public ThreadA(ThreadB b) {
        this.b = b;
    }

    @Override
    public void run() {
        try {
            synchronized (b) {
                b.start();
                Thread.sleep(6000);
                // Thread.sleep();
            }
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
